<?php
class Solicitudes_Form_Miembros extends Form_Cna {
	
	public function __construct($options = null) {
		parent::__construct($options);
	}
	
	public function init() {
		
		$this->setName('miembros');
		$this->setMethod("post");
		$this->setAttrib('enctype', 'multipart/form-data');
		
		$array_elements[] = new Zend_Form_Element_Hidden("codmiembro");
		
		$element = new Zend_Form_Element_Text("nombremiembro");
	    $element->setLabel("Nombre del integrante : ");
	    $element->setRequired(true);
	    $element->addFilter('StripTags');
	    $element->addFilter('StringTrim');
//	    $element->addFilter('StringToUpper');
	    $element->setAttribs(array('size'=>50));
        $array_elements[] = $element;

		$element = new Zend_Form_Element_Text("cargo");
	    $element->setLabel("Cargo : ");
	    $element->setRequired(true);
	    $element->addFilter('StripTags');
	    $element->addFilter('StringTrim');
//	    $element->addFilter('StringToUpper');
	    $element->setAttribs(array('size'=>50));
        $array_elements[] = $element;
		
		$element = new Zend_Form_Element_Text("dependencia");
	    $element->setLabel("Dependencia a la que esta adscrito : ");
	    $element->setRequired(true);
	    $element->addFilter('StripTags');
	    $element->addFilter('StringTrim');
//	    $element->addFilter('StringToUpper');
	    $element->setAttribs(array('size'=>50));
        $array_elements[] = $element;
        		
		$element = new Zend_Form_Element_Submit ( 'btnSubmit' );
		$element->setValue('Guardar');
		$element->setLabel("Guardar");
		$element->setAttrib("class", "iceCmdBtn");
		$array_elements[] = $element;
		
		$this->addElements ($array_elements);
		
//		$this->loadViewScriptDecorators();
		$this->loadTableDecorators();
	}
	
	public function loadViewScriptDecorators() {
		$this->setDecorators ( array (array ('viewScript', array ('viewScript' => 'viewscripts/comite_form.phtml' ) ) ) );
	}
}